package com.diors.game.engine.arpg.skill.effect;

import com.diors.game.engine.arpg.object.AbstractObject;
import com.diors.game.engine.arpg.skill.SkillEngine;
import com.diors.game.engine.arpg.skill.model.SkillBuffModel;
import com.diors.game.engine.arpg.skill.model.SkillEffectModel;

/**
 * 一个buff效果
 * @author	darren.ouyang <ouyang.darren@gmail.com>
 * @date	2013年12月3日
 * @version 1.0
 * @copyright Copyright (c) 2013, darren.ouyang
 */
public class BuffEffect extends AbstractEffect 
{

	int buffID;
	
	@Override
	protected void castImpl(AbstractObject attack, AbstractObject target, SkillEffectModel model) 
	{
		SkillBuffModel buffModel = SkillEngine.getBuffModel(buffID);
		if (buffModel == null)
			return ;
		
		SkillEngine.caseBuffSkill(attack, target, buffModel);
	}

}
